x11: Unset GdkX11DeviceXI2 scroll valuators on device change
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 27 Sep 2013 17:32:54 +0000 (19:32 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 22 Nov 2013 11:49:32 +0000 (12:49 +0100)
commita53a931755111446eb7b94394034bbad1c341dc1
treefd4f9dec6ebef6c1c56ede1e4e741d33a3457e05
parent189b9c643d0a688f77241d352f5ca363d84ad3bf
x11: Unset GdkX11DeviceXI2 scroll valuators on device change

Scroll valuators were being just appended again and again, leading
to 1) a growing memory issue anytime a device changed 2) the first
scroll valuators to stay permanent on the application lifetime, as
the first stored valuators would always match.

https://bugzilla.gnome.org/show_bug.cgi?id=705203
gdk/x11/gdkdevice-xi2.c
gdk/x11/gdkdevicemanager-xi2.c
gdk/x11/gdkprivate-x11.h